package com.woniuxy.educationplatform.bean;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author unreleased
 * @date 2020/12/8 16:26
 *  //@JsonIgnoreProperties(value = "handler") mybatis配置懒加载导致RestController或responsebody返回对象Jackson解析失败。
 *  No serializer found for class org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory$EnhancedResultObjectProxyImpl and no properties discovered to create BeanSerializer
 */
@Data
@Accessors(chain = true)
@JsonIgnoreProperties(value = "handler")
public class AdminBean implements Serializable {
    private Integer id;
    @Excel(orderNum = "0",name = "admin_name")
    private String adminName;
    @Excel(orderNum = "1",name = "login_name")
    private String loginName;
    @Excel(orderNum = "2",name = "gender")
    private Integer gender;
    private String password;
    @Excel(orderNum = "3",name = "telephone")
    private String telephone;
    @Excel(orderNum = "4",name = "email")
    private String email;
    @Excel(orderNum = "5",name = "admin_desc")
    private String adminDesc;
    @Excel(orderNum = "6",name = "create_time")
    private Date createTime;
    private RoleBean roleBean;
    /**
     * 0表示正常
     * 1表示禁用
     */
    @Excel(orderNum = "8",name = "status")
    private Integer status;
}
